﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManage.aspx.cs" Inherits="IFTRUE.FMS.Web.Aspx.FileManage" ValidateRequest="false" %>

<%@ Register Assembly="IZ.WebFileManager" Namespace="IZ.WebFileManager" TagPrefix="iz" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server"><iz:FileManager ID="FileManager1" 
        runat="server" Height="600px" Width="800px" AllowOverwrite="true" FileViewMode="Details"
        ShowHiddenFilesAndFolders="true" ProhibitedFiles="exe,bat" 
        OnFileDeleting="FileManager1_FileDeleting" RecyclePath="~/Recycle"
                Culture="zh-CN" OnExecuteCommand="FileManager1_ExecuteCommand" 
        onfiledownload="FileManager1_FileDownload" 
        onfileuploaded="FileManager1_FileUploaded" 
        onitemrenamed="FileManager1_ItemRenamed" 
        onnewdocumentcreated="FileManager1_NewDocumentCreated" 
        onnewfoldercreated="FileManager1_NewFolderCreated">
                <ToolbarOptions ShowCopyButton="False" ShowDeleteButton="False" ShowMoveButton="false" ShowRenameButton="false" />
                <RootDirectories>
                    <iz:RootDirectory DirectoryPath="~/Files" Text="文件" ShowRootIndex="False" />
                </RootDirectories>
                <FileTypes>
                    <iz:FileType Extensions="txt,htm,html,css,js,ini,config,aspx,asp" Name="文本对象" SmallImageUrl="images/16x16/notepad.png"  LargeImageUrl="images/32x32/notepad.png">
                        <Commands>
                            <iz:FileManagerCommand Name="编辑" Method="PostBack" CommandName="EditText" SmallImageUrl="images/16x16/notepad.png" />
                        </Commands>
                    </iz:FileType>
                </FileTypes>
            </iz:FileManager>
        <div>
            
            <asp:Panel runat="server" ID="TextEditor" Visible="false">
                <div>
                    <asp:TextBox runat="server" ID="txtContent" TextMode="MultiLine" Height="600px" Width="800px"/>
                </div>
                <div>
                    <asp:Button runat="server" ID="btnSave" Text="Save" OnClick="btnSave_Click" /><asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="btnCancel_Click" />
                </div>
            </asp:Panel>
        </div>
    <span style="font-size:12px;"><asp:Label ID="lblMsg" runat="server" Text=""></asp:Label></span> 
    </form>
</body>
</html>
